package com.api.shopapi.service;

import com.api.shopapi.entity.TrainRecord;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface TrainRecordService {

    int insert(TrainRecord trainRecord);

    int update(TrainRecord trainRecord);

    TrainRecord getByTrainRecordCode(String trainRecordCode);

    PageInfo<TrainRecord> getPageList(int pageIndex,int pageSize,String governmentCode, String startTime, String endTime);


}
